<%@ page import="se2.DiscountPlan" %>

<%
	DiscountPlan dp = new DiscountPlan();
	
	if (dp.removeDiscountPlan(Integer.parseInt(request.getParameter("id"))))
	{
		System.out.println("Discount Plan removed.");
%>
		<jsp:forward page="viewDiscountPlan.jsp" />
<%
	}
	else
	{
		System.out.println("Discount Plan remove failed.");
%>
		<jsp:forward page="error.jsp?url=viewDiscountPlan.jsp" />
<%
	}
%>
